﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace backend.Entity
{
    public class Payment
    {
        public long Id { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public string Msg { get; set; }
        /// <summary>
        /// 支付金额
        /// </summary>
        public float Expense { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public DateTime Time { get; set; }
        /// <summary>
        /// 支付状态
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 项目外键
        /// </summary>
        public long ProjectId { get; set; }
        /// <summary>
        /// 项目实体
        /// </summary>
        [ForeignKey("ProjectId")]
        public Project Project { get; set; }
    }
}
